package com.erp.framework.controller.form;

import com.erp.framework.util.BeanUtil;
import com.erp.framework.util.logger.Logger;

public class SimplePageEditStyleForm extends SimpleCoreForm {
    public SimplePageEditStyleForm() {
    }

    protected boolean hasAddedRows = false;

    public boolean isMultiPage() {
        return false;
    }

    public boolean getHasAddedRows() {
        return hasAddedRows;
    }

    public void setHasAddedRows(boolean hasAddedRows) {
        this.hasAddedRows = hasAddedRows;
    }

    public void resetForm() {
        resetSearchCriteria();
        clearResultList();
    }

    // reset the searching criteria (field that starts with "srch")
    public void resetSearchCriteria() {
        try {
            BeanUtil.setSpecificStringPropertiesEmpty(this, "srch");
        } catch (Exception e) {
            Logger.logExceptions(this, e);
        }
    }

    // clear the result list
    public void clearResultList() {
        // resultList.clear();
        // sidx = 0;
    }

}
